package com.atguigu.inherited;

public class Worker extends Person{
    public Worker() {
        super();//调用父类的无参构造
    }

    public Worker(String name, int age, char gender) {
        super(name, age, gender);//调用父类的有参构造
    }
}
